// 引入axios用户自定义模块发送请求
import axios from './common.js'

// 获取所有权限列表
export const getAllRightList = (type) => {
  return axios({
    url: `rights/${type}`,
    method: 'get'
  })
}

// 获取左侧菜单权限
export const menusList = () => {
  return axios({
    url: 'menus'
  })
}
